﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace bai_4thuchanh2
{
    class hocvien
    {
        public string hoten;
        public float namsinh;
        public hocvien()
        {
        }
        public string HoTen
        {
            get { return hoten; }
            set { hoten = value; }
        }
        public float NamSinh
        {
            get { return namsinh; }
            set { namsinh = value; }
        }
        public virtual void nhap()
        {
            Console.Write(" nhap ho ten sinh vien:");
            HoTen = Console.ReadLine();
            Console.Write("nhap nam sinh cua sinh vien:");
            NamSinh = float.Parse(Console.ReadLine());
        }
        public virtual void xuat()
        {
            Console.WriteLine("hoten:{0},namsinh:{1}", HoTen, NamSinh);
        }


    }
}
